<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/dpa/css/index.css">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/css/person.css">
    <link type="text/css" rel="stylesheet" href="__PUBLIC__/dpa/css/layer.css">
    <script type="text/javascript" src="__PUBLIC__/dpa/js/jquery-3.0.0.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/dpa/js/layer.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $('.xxt1').on('click', function () {
                layer.open({
                    type: 3,
                    area: "auto", //宽高
                    offset: ['200px', '500px'],
                    shadeClose: true,
                    content: "<img src='__PUBLIC__/dpa/img/wtdwxx.png'/>",
                });
            });
            $('.xxt2').on('click', function () {
                layer.open({
                    type: 3,
                    area: "auto", //宽高
                    offset: ['200px', '420px'],
                    shadeClose: true,
                    content: "<img src='__PUBLIC__/dpa/img/wtryxx.png'/>",
                });
            });
            $('.xxt3').on('click', function () {
                layer.open({
                    type: 3,
                    area: "auto", //宽高
                    offset: ['200px', '150px'],
                    shadeClose: true,
                    content: "<img src='__PUBLIC__/dpa/img/jdb.png'/>",
                });
            });
        });
    </script>
    <script type="text/javascript">
        $(document).ready(function () {

        })
    </script>
    <title>excel文件上传</title>
</head>
<body>
<!--加载导航条开始-->
<div class="nav-bar">
    <ul>
        <li class="in"><a href="{:U('Home/Index/menu')}">自定义菜单</a></li>
        <li class="on"><a href="{:U('Home/Upload/upload')}">上传excel</a></li>
        <li class="in"><a href="{:U('Home/Index/unit')}">单位信息管理</a></li>
        <li class="in"><a href="{:U('Home/Index/personnel')}">人员信息管理</a></li>
        <li class="in"><a href="{:U('Home/Index/schedule')}">数据管理</a></li>
        <li class="in"><a href="{:U('Home/Index/connect')}">交接数据管理</a></li>
        <li  style="background:darkcyan"> <a href="{:U('Home/Index/changepass')}">更改密码</a></li>
        <li style="background:grey"><a href="{:U('Home/Index/unlogin')}">退出登录</a></li>
    </ul>
</div>
<!--加载导航条结束-->
<div class="container">
	<div class="left-upload">
	<form method="post" action="__SELF__" enctype="multipart/form-data">
		<h1>导入Excel表</h1>
		<input  type="file" name="file_stu"  class="bottom-btn"/><br/>
		<input type="submit"  value="导入" class="add" />
	</form>
	</div>
    <div class="right-content">
        <h1>文件上传须知</h1>
        <p>excel模板下载 :
            <?php
                $appurl = C('APPURL');
                $exceldownloadpath = C('EXCELDOWNLOADPATH');
                $exdeldownload = $appurl.$exceldownloadpath;
           ?>
            <a href="<?php echo $exdeldownload; ?>unit.xlsx">单位信息表下载</a>&nbsp;&nbsp;
            <a href="<?php echo $exdeldownload; ?>personnel.xlsx">人员信息表下载</a>&nbsp;&nbsp;
            <a href="<?php echo $exdeldownload; ?>schedule.xlsx">进度情况表下载</a>&nbsp;&nbsp;
            <a href="<?php echo $exdeldownload; ?>connect.xlsx">交接表下载</a>
        </p>
        <ol class="rounded-list">
            <li><a href="javascript:void (0);">上传的文件必须为.xls或.xlsx格式的excel表格</a></li>
            <li><a href="javascript:void (0);">表格必须包括标题与表头</a></li>
            <li><a href="javascript:void (0);">表格标题与表头为必填并不可变字段</a></li>
            <li><a href="javascript:void (0);">表体内容为可变字段根据实际数据填写</a>
            <li><a href="javascript:void (0);">所有表格的字段内容除了序号字段外其他字段内容的格式必须为文本格式</a>
            <li><a href="javascript:void (0);">单位信息表的委托单位不能为空且不能重复</a>
            <li><a href="javascript:void (0);">人员信息表的委托单位和手机号不能为空且同一个手机号不能委托多家单位</a>
            <li><a href="javascript:void (0);">进度情况表的dpa报告号和委托单位不能为空且dpa报告号不能重复</a>
            <li id="jt"><a href="javascript:void (0);">具体可参照下列图例</a>
                <ol id="jt-ol">
                    <li class="jt-li"><a href="javascript:void (0);">委托单位信息表</a><div><img src="__PUBLIC__/dpa/img/wtdwxx.png" class="xxt1"></div></li>

                    <li class="jt-li"><a href="javascript:void (0);">委托人员信息表</a> <div class="jt-li"><img src="__PUBLIC__/dpa/img/wtryxx.png" class="xxt2"></div></li>

                    <li class="jt-li"><a href="javascript:void (0);">进度表</a> <div><img src="__PUBLIC__/dpa/img/jdb.png" class="xxt3"></div></li>

                </ol>

            </li>

        </ol>
    </div>
</div>
</body>
</html>